<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:replace="dashboard/header :: header"></head>
<body>

<!--
@desc  更新
@author WeiXiaoJin
@since 2020-01-30 07:28:26
-->

	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">

								<form class="form-horizontal" id="modifyForm">

									<input type="hidden" name="id" th:value="${bean.id}" />
									
<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">api链接 </label>
	<div class="col-md-9">
				<input class="form-control" id="url" type="text" th:value="${ bean.url}" name="url" placeholder="api链接">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input"> 请求方式 </label>
	<div class="col-md-9">
				<input class="form-control" id="method" type="text" th:value="${ bean.method}" name="method" placeholder=" 请求方式">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">参数列表 </label>
	<div class="col-md-9">
				<input class="form-control" id="param" type="text" th:value="${ bean.param}" name="param" placeholder="参数列表">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">请求参数备注 </label>
	<div class="col-md-9">
				<input class="form-control" id="paramRemark" type="text" th:value="${ bean.paramRemark}" name="paramRemark" placeholder="请求参数备注">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">请求示例 </label>
	<div class="col-md-9">
				<input class="form-control" id="requestExam" type="text" th:value="${ bean.requestExam}" name="requestExam" placeholder="请求示例">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">返回参数说明 </label>
	<div class="col-md-9">
				<input class="form-control" id="responseParam" type="text" th:value="${ bean.responseParam}" name="responseParam" placeholder="返回参数说明">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">接口错误码列表 </label>
	<div class="col-md-9">
				<input class="form-control" id="errorList" type="text" th:value="${ bean.errorList}" name="errorList" placeholder="接口错误码列表">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">正确返回示例 </label>
	<div class="col-md-9">
				<input class="form-control" id="trueExam" type="text" th:value="${ bean.trueExam}" name="trueExam" placeholder="正确返回示例">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">错误返回示例 </label>
	<div class="col-md-9">
				<input class="form-control" id="falseExam" type="text" th:value="${ bean.falseExam}" name="falseExam" placeholder="错误返回示例">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">是否可用;0不可用；1可用;-1 删除 </label>
	<div class="col-md-9">
				<input class="form-control" id="status" type="text" th:value="${ bean.status}" name="status" placeholder="是否可用;0不可用；1可用;-1 删除">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">所属模块ID </label>
	<div class="col-md-9">
				<input class="form-control" id="moduleId" type="text" th:value="${ bean.moduleId}" name="moduleId" placeholder="所属模块ID">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">接口名 </label>
	<div class="col-md-9">
				<input class="form-control" id="interfaceName" type="text" th:value="${ bean.interfaceName}" name="interfaceName" placeholder="接口名">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">remark </label>
	<div class="col-md-9">
				<input class="form-control" id="remark" type="text" th:value="${ bean.remark}" name="remark" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">错误码、错误码信息 </label>
	<div class="col-md-9">
				<input class="form-control" id="errors" type="text" th:value="${ bean.errors}" name="errors" placeholder="错误码、错误码信息">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">updateBy </label>
	<div class="col-md-9">
				<input class="form-control" id="updateBy" type="text" th:value="${ bean.updateBy}" name="updateBy" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">createTime </label>
	<div class="col-md-9">
				<div class="input-group date">
			<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
			<input type="text" class="form-control time-input" 
			       id="createTime-3" name="createTime" 
				   th:value="${ #dates.format(bean.createTime, 'yyyy-MM-dd HH:mm:ss')}" 
			       data-type="datetime" 
			       data-format="yyyy-MM-dd HH:mm:ss" 
			       placeholder="yyyy-MM-dd HH:mm:ss" lay-key="createTime-3">
		</div>
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">版本号 </label>
	<div class="col-md-9">
				<input class="form-control" id="version" type="text" th:value="${ bean.version}" name="version" placeholder="版本号">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">排序，越大越靠前 </label>
	<div class="col-md-9">
				<input class="form-control" id="sequence" type="text" th:value="${ bean.sequence}" name="sequence" placeholder="排序，越大越靠前">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">header </label>
	<div class="col-md-9">
				<input class="form-control" id="header" type="text" th:value="${ bean.header}" name="header" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">fullUrl </label>
	<div class="col-md-9">
				<input class="form-control" id="fullUrl" type="text" th:value="${ bean.fullUrl}" name="fullUrl" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">监控类型，多选：
Network("网络异常",1),Include("包含指定字符串",2),NotInclude("不包含指定字符串",3),NotEqual("不等于指定字符串",4);	
 </label>
	<div class="col-md-9">
				<input class="form-control" id="monitorType" type="text" th:value="${ bean.monitorType}" name="monitorType" placeholder="监控类型，多选：
Network("网络异常",1),Include("包含指定字符串",2),NotInclude("不包含指定字符串",3),NotEqual("不等于指定字符串",4);	
">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">监控比较内容 </label>
	<div class="col-md-9">
				<input class="form-control" id="monitorText" type="text" th:value="${ bean.monitorText}" name="monitorText" placeholder="监控比较内容">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">monitorEmails </label>
	<div class="col-md-9">
				<input class="form-control" id="monitorEmails" type="text" th:value="${ bean.monitorEmails}" name="monitorEmails" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">是否是模板 </label>
	<div class="col-md-9">
				<input class="form-control" id="isTemplate" type="text" th:value="${ bean.isTemplate}" name="isTemplate" placeholder="是否是模板">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">projectId </label>
	<div class="col-md-9">
				<input class="form-control" id="projectId" type="text" th:value="${ bean.projectId}" name="projectId" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">接口返回contentType </label>
	<div class="col-md-9">
				<input class="form-control" id="contentType" type="text" th:value="${ bean.contentType}" name="contentType" placeholder="接口返回contentType">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">contentType </label>
	<div class="col-md-9">
				<input class="form-control" id="contentType" type="text" th:value="${ bean.contentType}" name="contentType" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">createTime </label>
	<div class="col-md-9">
				<div class="input-group date">
			<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
			<input type="text" class="form-control time-input" 
			       id="createTime-3" name="createTime" 
				   th:value="${ #dates.format(bean.createTime, 'yyyy-MM-dd HH:mm:ss')}" 
			       data-type="datetime" 
			       data-format="yyyy-MM-dd HH:mm:ss" 
			       placeholder="yyyy-MM-dd HH:mm:ss" lay-key="createTime-3">
		</div>
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">errorList </label>
	<div class="col-md-9">
				<input class="form-control" id="errorList" type="text" th:value="${ bean.errorList}" name="errorList" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">falseExam </label>
	<div class="col-md-9">
				<input class="form-control" id="falseExam" type="text" th:value="${ bean.falseExam}" name="falseExam" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">fullUrl </label>
	<div class="col-md-9">
				<input class="form-control" id="fullUrl" type="text" th:value="${ bean.fullUrl}" name="fullUrl" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">interfaceName </label>
	<div class="col-md-9">
				<input class="form-control" id="interfaceName" type="text" th:value="${ bean.interfaceName}" name="interfaceName" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">isTemplate </label>
	<div class="col-md-9">
				<input class="form-control" id="isTemplate" type="text" th:value="${ bean.isTemplate}" name="isTemplate" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">moduleId </label>
	<div class="col-md-9">
				<input class="form-control" id="moduleId" type="text" th:value="${ bean.moduleId}" name="moduleId" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">monitorEmails </label>
	<div class="col-md-9">
				<input class="form-control" id="monitorEmails" type="text" th:value="${ bean.monitorEmails}" name="monitorEmails" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">monitorText </label>
	<div class="col-md-9">
				<input class="form-control" id="monitorText" type="text" th:value="${ bean.monitorText}" name="monitorText" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">monitorType </label>
	<div class="col-md-9">
				<input class="form-control" id="monitorType" type="text" th:value="${ bean.monitorType}" name="monitorType" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">paramRemark </label>
	<div class="col-md-9">
				<input class="form-control" id="paramRemark" type="text" th:value="${ bean.paramRemark}" name="paramRemark" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">projectId </label>
	<div class="col-md-9">
				<input class="form-control" id="projectId" type="text" th:value="${ bean.projectId}" name="projectId" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">requestExam </label>
	<div class="col-md-9">
				<input class="form-control" id="requestExam" type="text" th:value="${ bean.requestExam}" name="requestExam" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">responseParam </label>
	<div class="col-md-9">
				<input class="form-control" id="responseParam" type="text" th:value="${ bean.responseParam}" name="responseParam" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">trueExam </label>
	<div class="col-md-9">
				<input class="form-control" id="trueExam" type="text" th:value="${ bean.trueExam}" name="trueExam" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">updateBy </label>
	<div class="col-md-9">
				<input class="form-control" id="updateBy" type="text" th:value="${ bean.updateBy}" name="updateBy" placeholder="">
			</div>
</div>
																										</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	<footer th:replace="dashboard/footer :: footer"></footer>

	<script type="text/javascript">
		var modifyForm = $("#modifyForm") ; 
		$(function(){
			addForm.validate({
				ignore: [],  
				rules: {
url: {required:true}
,method: {required:true}
,param: {required:true}
,paramRemark: {required:true}
,requestExam: {required:true}
,responseParam: {required:true}
,errorList: {required:true}
,trueExam: {required:true}
,falseExam: {required:true}
,status: {required:true}
,moduleId: {required:true}
,interfaceName: {required:true}
,remark: {required:true}
,errors: {required:true}
,updateBy: {required:true}
,createTime: {required:true}
,version: {required:true}
,sequence: {required:true}
,header: {required:true}
,fullUrl: {required:true}
,monitorType: {required:true}
,monitorText: {required:true}
,monitorEmails: {required:true}
,isTemplate: {required:true}
,projectId: {required:true}
,contentType: {required:true}
,contentType: {required:true}
,createTime: {required:true}
,errorList: {required:true}
,falseExam: {required:true}
,fullUrl: {required:true}
,interfaceName: {required:true}
,isTemplate: {required:true}
,moduleId: {required:true}
,monitorEmails: {required:true}
,monitorText: {required:true}
,monitorType: {required:true}
,paramRemark: {required:true}
,projectId: {required:true}
,requestExam: {required:true}
,responseParam: {required:true}
,trueExam: {required:true}
,updateBy: {required:true}
				}
			});
		}) ;

		function submitHandler() {
			var result = $.validate.form("modifyForm");
			if(result){	
				var modifyUrl = ctx+"gateway/admin/gateLogger/update" ;
				$.operate.save(modifyUrl , modifyForm.serialize());
			}
	    }
	</script>
</body>
</html>
